{include file="index/head" /}
<div class="box">
<div class="form">
    <div class="box-head">
		<h2>{$v.id?'编辑':'添加'}标签</h2>
		<div class="fr">
			<button type="submit" class="btn"><i class="icon-check"></i>{$v.id?'编辑':'添加'}</button>
			&nbsp;<a href="javascript:history.go(-1);" class="btn fr"><i class="icon-mail-reply (alias)"></i>返回</a>
		</div>
    </div>
    <form method="post" action="{:url('tagadd')}" class="sycmsform">
      <input type="hidden" name="id" value="{$v.id}" />
      <ul class="tabcon" style="display:block;">
        <li>
          <label>标签：</label>
          <div class="item">
            <input type="text" name="tag" value="{$v.tag}" class="input" datatype="*" nullmsg="请输入标签"/>
          </div>
        </li>
         <li>
          <label>图片：</label>
          <div class="item">
            <input type="text" name="img" class="input"/>
            <button type="button" class="button fl" onclick="sycms.showupload(this)" id="image1" at="dg"><i class="icon-plus"></i>上传图片</button>
						<div class="clear"></div>
            <div class="input-image">{if $v.img}<img src="{$v.img}" alt="" />{/if}</div>
          </div>
        </li>
       <li>
         <label>SEO标题：</label>
         <div class="item">
           <input type="text" class="input w100" value="{$v.seo_title}" name="seo_title"  />
         </div>
       </li>
       <li>
         <label>SEO关键字：</label>
         <div class="item">
           <input type="text" class="input w100" value="{$v.seo_keywords}" name="seo_keywords"  />
         </div>
       </li>
       <li>
         <label>SEO描述：</label>
         <div class="item">
           <textarea type="text" class="input w100" name="seo_description">{$v.seo_description}</textarea>
         </div>
       </li>
      </ul>
      <ul>
        <li>
          <label>&nbsp;</label>
          <div class="item">
            <button type="submit" class="button"><i class="icon-check"></i>添加</button>
          </div>
        </li>
      </ul>
    </form>
  </div> 
</div>
<script> sycms.submitform("{:url('taglist')}"); </script>